import axios from "../../axios.js"

export default {
  //退费单通过协议号查询客户
  selectSignRefundFormCustomer(data, binding) {
    return axios({
      url: '/crm/selectSignRefundFormCustomer',
      method: 'post',
      data
    })
  },
  //退费单点击客户得到这个客户信息
  selectInfoRefundFormCustomer(data, binding) {
    return axios({
      url: '/crm/selectInfoRefundFormCustomer',
      method: 'get',
      params: data,
      headers: {
        "binding": binding
      }
    })
  },
  //退费单新建
  insertInfoRefundFormCustomer(data, binding) {
    return axios({
      url: '/crm/insertInfoRefundFormCustomer',
      method: 'post',
      data,
      headers: {
        "binding": binding
      }
    })
  },
  //退费单查询
  selectRefundFormCustomer(data, binding) {
    return axios({
      url: '/crm/selectHaveRefundFormCustomer',
      method: 'post',
      data
    })
  },
  //退费单修改
  updateRefundFormCustomer(data, binding) {
    return axios({
      url: '/crm/updateRefundFormCustomer',
      method: 'post',
      data,
      headers: {
        "binding": binding
      }
    })
  },
};
